// src\stores\permission.ts
import { defineStore } from 'pinia';

export const usePermissionStore = defineStore('permission', {
  state: () => ({
    permissionRules: {
      FARMER: [
      ],
      MANAGER: [
        '/machine',
      ],
    } as Record<string, string[]>,
  }),
  getters: {
    getForbiddenPaths: (state) => (role: string) => {
      return state.permissionRules[role] || [];
    },
  },
});